<?php 
$controller = $this->params['controller'];
$action = $this->params['action'];
$pass_0 = isset($this->params['pass'][0])?$this->params['pass'][0]:'';
$cls_hotro = '';
if($action=='view' && $pass_0=='ho_tro') {
	$cls_hotro = 'active';
}

$cls_lienhe = '';
if($action=='view' && $pass_0=='lien_he') {
	$cls_lienhe = 'active';
}

$cls_home = '';
if($controller=='home') {
	$cls_home = 'active';
}

$cls_dichvu = '';
echo stripos('dv_', $pass_0);
if(($controller=='cms_pages' && $action=='index') || stripos($pass_0, 'dv_')!==false) {
	$cls_dichvu = 'active';	
}
?>

<div id="footer">
	<a class="<?php echo $cls_home;?>" href="<?php echo $frontend_url;?>"><?php __('menu_home');?></a>
	- <a class="<?php echo $cls_dichvu;?>" href="<?php echo $frontend_url;?>cms_pages"><?php __('menu_service');?></a> 
	- <a class="<?php echo $cls_hotro;?>" href="<?php echo $frontend_url;?>cms_pages/view/ho_tro"><?php __('menu_support');?></a>
	- <a class="<?php echo $cls_lienhe;?>" href="<?php echo $frontend_url;?>cms_pages/view/lien_he"><?php __('menu_contact');?></a>
	<span class="right">&copy; 2010 by
		<a class="active" href="javascript:void(0)">TransGreen Express</a>
	</span>
</div>